const koa = require("koa");
const router = require("koa-router");
const static = require("koa-static");
const pathlib = require("path");

let server = new koa();
server.listen(8080);

let r1 = router();
server.use(r1.routes());

r1.get("/aaa",async (ctx,next)=>{
	console.log(ctx)
	console.log(next)
})

server.use(static(pathlib.resolve("www")));